package com.example.i.spy;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class HelpScreen extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
    	// create the activity and load its layout.
        super.onCreate(savedInstanceState);
        // lock the display orientation
        this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.activity_help_screen);
        
        // the functionality for the next page button
        Button next = (Button) findViewById(R.id.next);
        next.setOnClickListener(new View.OnClickListener() {
			
        	// when it is clicked, start the activity for the next page.
			public void onClick(View v) 
			{
				Intent nextIntent = new Intent(HelpScreen.this, HelpScreen2.class);
				startActivity(nextIntent);
			}
		});
        
        // the functionality for the main menu button
        Button menu = (Button) findViewById(R.id.mainMenuHelpScreen);
        menu.setOnClickListener(new View.OnClickListener() {
			
        	// when it is clicked, destroy this activity, and load up the previous one.
			public void onClick(View v) 
			{
				finish();
			}
		});
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) 
    {
        getMenuInflater().inflate(R.menu.activity_help_screen, menu);
        return true;
    }
}
